import { createRouter, createWebHashHistory } from "vue-router";
// @ts-ignore
// @ts-ignore
const Router = createRouter({
  history: createWebHashHistory(),
  routes: [
    {
      path: "/",
      redirect: "/homeIndex",
    },
    {
      path: "/login",
      name: "login",
      component: () => import("@/views/login/login.vue"),
    },
    {
      path: "/homeIndex",
      name: "homeIndex",
      component: () => import("@/views/home/home_index.vue"),
    },
    {
      path: "/homePageone",
      name: "homePageone",
      component: () => import("@/views/home/home_pageone.vue"),
    },
    {
      path: "/homePagetwo",
      name: "homePagetwo",
      component: () => import("@/views/home/home_pagetwo.vue"),
    },
    {
      path: "/homeUser",
      name: "homeUser",
      component: () => import("@/views/home/home_user.vue"),
    },
    {
      path: "/setting",
      component: () => import("@/views/setting/index.vue"),
      children: [
        {
          path: "editSet",
          component: () => import("@/views/setting/edit_set.vue"),
        },
      ],
    },
  ],
});
export default Router;
